package com.xbongbong.pro.detailtab.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/25 13:57
 * @since v1.0
 */
@Getter
@Setter
public class DelParentOrChildCustomerDTO extends BaseDTO {
    private static final long serialVersionUID = 684372512933870588L;

    /**
     * 需要删除上下级客户的客户id
     */
    @NotNull(message = "{dto.msg.delParentOrChildCustomer.customerId.NotNull}")
    private Long customerId;
    /**
     * 上下级客户id
     */
    @NotNull(message = "{dto.msg.delParentOrChildCustomer.parentOrChildCustomerId.NotNull}")
    private Long parentOrChildCustomerId;
    /**
     * 删除上级客户还是下级客户 0代表上级客户, 1代表下级客户
     */
    @NotNull(message = "{dto.msg.delParentOrChildCustomer.childOrParent.NotNull}")
    @DecimalMin(value = "0", message = "{dto.msg.delParentOrChildCustomer.childOrParent.DecimalMin}")
    @DecimalMax(value = "1", message = "{dto.msg.delParentOrChildCustomer.childOrParent.DecimalMax}")
    private Integer childOrParent;
}
